﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/BizUserMaster.Master"
    CodeBehind="Default.aspx.cs" Inherits="BizUser._Default" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 100%">
        <tr>
            <td colspan="3">
                <span style="font-size: 20px; color: #00BDF2;">Provide patient specifics generally known
                    to an EHR then select drug to search</span>
            </td>
        </tr>
        <tr class="contentRow">
            <td style="width: 24%">Sex :
            </td>
            <td style="width: 24%">
                <asp:DropDownList ID="ddlPatient" Width="200px" CssClass="ddl" runat="server">
                </asp:DropDownList>
            </td>
            <td style="width: 4%"></td>
            <td style="width: 24%">Patient Name/Sex :
            </td>
            <td style="width: 24%">
                <asp:DropDownList ID="DropDownList1" Width="200px" CssClass="ddl" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        
       <tr  class="contentRow" runat="server" id="trPAActions" visible="true">
            <td align="center" colspan="5">
                <asp:Button CssClass="btn" OnClick="btnSearch_OnClick" Width="100px" Text="Search "
                    ValidationGroup="save" runat="server" ID="btnChangeDrug" />
                
                <asp:Button ID="btnTmpOpenListing" runat="server" OnClick="btnTmpOpenListing_Click" PostBackUrl="~/ListingsPlanType.aspx" Text="OpenListing" Width="101px" />
                
                <asp:Button ID="Button1" runat="server" PostBackUrl="~/RegUserLogin.aspx" Text="Login" />
                <asp:Button ID="Button2" runat="server" PostBackUrl="~/SelfRegister.aspx" Text="Register" />
                <asp:Button ID="Button3" runat="server" PostBackUrl="~/Search/SearchListing.aspx" Text="Search Screen" />
                
            </td>
        </tr>
        <tr class="contentRow" runat="server" id="trcASHelpText" visible="false">
            <td colspan="3">
                <span class="helpText">Click on the <span class="helpQ">?</span> to find out where each
                    column's data comes from</span>
            </td>
        </tr>
        <tr runat="server" id="trcASSearchItems"  class="contentRow">
            <td align="center" colspan="5">
                <asp:GridView ID="grdSearchResults" Style="width: 100%" runat="server" CssClass="gridTable"
                    AutoGenerateColumns="False" CellPadding="4" GridLines="None">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="30px" HeaderText="">
                            <ItemTemplate>
                                <asp:Button  runat="server" Text="Delete" ID="btnDelete"></asp:Button>
                                <asp:HiddenField runat="server" ID="hdnItemID" Value='<%#Bind("UserID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                Name
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblName" Text='<%#Bind("Name") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                Age
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblAge" Text='<%#Bind("Age") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                       
                    </Columns>
                    <HeaderStyle CssClass="gridHeader" />
                    <RowStyle CssClass="gridTable" />
                    <AlternatingRowStyle CssClass="altRow" />
                    <PagerSettings Mode="Numeric" Visible="true" />
                    <EmptyDataTemplate>
                        <span class="error">No drug found.</span>
                    </EmptyDataTemplate>
                </asp:GridView>
            </td>
        </tr>
        
    </table>
</asp:Content>
